/**
 * Created by ${PRODUCT_NAME}.
 * User: skylerparr
 * Date: 12/19/10
 * Time: 4:38 PM
 * To change this template use File | Settings | File Templates.
 */
package com.thoughtorigin.deeplink {
import com.asual.swfaddress.SWFAddress;

import flash.events.EventDispatcher;

public class SWFAddressProxy extends EventDispatcher implements BrowserHistory {

		public static function get instance(): SWFAddressProxy {
			return new SWFAddressProxy();
		}

		public function setHistory(value: Boolean): void {
			SWFAddress.setHistory(value);
		}

		public function setStrict(value: Boolean): void {
			SWFAddress.setStrict(value);
		}

		public function getPath(): String {
			return SWFAddress.getPath();
		}

		public function setValue(value: String): void {
			SWFAddress.setValue(value);
		}

		public function getBaseURL(): String {
			return SWFAddress.getBaseURL();
		}

		override public function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false):void {
			SWFAddress.addEventListener(type, listener, useCapture, priority, useWeakReference);
		}

		override public function removeEventListener(type:String, listener:Function, useCapture:Boolean=false):void {
			SWFAddress.removeEventListener(type, listener);
		}

}
}
